For North American 1.0 headered version of FF3us only (at least until I get around to making unheadered versions of these patches for those who want them).
By Robo Jesus
Version 0.3

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Introduction;

This was a quick attempt at recreating the item in the "General Leo's Legacy" patch by Ghost XIII, which gave Celes "Shock" in place of "Runic" via hex editting an item. While his patch was awesome, there was only one patch for unheadered roms (with most patches being for their headered versions), and it forced a plethora of event changes in addition to everything else in order to get hold of the modified item, which caused problems for those who wanted to use a lot of other various mods and patches. This patch here is focused on just modifying the item itself (with options for the user to chose from for which item they want to have changed) and nothing more, which gives modders a lot more room to use and utilize this for their own projects.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Details;

There are five headered IPS patches for use at this time, each of which edits a different relic (#1. Thief Glove, #2. Coin Toss, #3. Fake Moustache, #4. Gem Box, #5. DragoonBoots) to turn "Runic" into "Shock". The ips patches were made via hex editing in WindHex followed by editing in FF3usME.exe (version 6.8.0) in order to allow Celes and Gogo to use the items in question, as well as changing the item name and changing the item description.


shocking relic 01 (v0.2) (alters thief glove).ips      =      Use of WindHex and FF3usME to overwrite hex data in the Thief Glove relic to turn "Runic" into "Shock" as well as have these commands show in the character status menu, item name changed to "Leo's Crest", item description updated, character equip options updated.


shocking relic 02 (v0.2) (alters coin toss).ips      =      Use of WindHex and FF3usME to overwrite hex data in the Coin Toss relic to turn "Runic" into "Shock" as well as have these commands show in the character status menu, item name changed to "Leo's Crest", item description updated, character equip options updated.


shocking relic 03 (v0.2) (alters fake moustache).ips      =      Use of WindHex and FF3usME to overwrite hex data in the Fake Moustache relic to turn "Runic" into "Shock" as well as have these commands show in the character status menu, item name changed to "Leo's Crest", item description updated, character equip options updated.


shocking relic 04 (v0.2) (alters gem box).ips      =      Use of WindHex and FF3usME to overwrite hex data in the Gem Box relic to turn "Runic" into "Shock" as well as have these commands show in the character status menu, item name changed to "Leo's Crest", item description updated, character equip options updated.


shocking relic 05 (v0.2) (alters dragoonboots).ips      =      Use of WindHex and FF3usME to overwrite hex data in the DragoonBoots relic to turn "Runic" into "Shock" as well as have these commands show in the character status menu, item name changed to "Leo's Crest", item description updated, character equip options updated.


I have also included the "Original" set of ips patches that focused exclusively on just changing the command functions and battle/menu screens without altering any of the items. Each of the relics listed used a check that used those command function changes, but did not actually touch on the relics that used them. I figured I should include this for those modders who just want to do all their editing via hex editing, rather than a combination of hex editing and then using FF3usME.exe (as using FF3usME gets rid of an unneeded and useless item command in order to edit item descriptions, thus even though the majority of modders are going to be using FF3usME, I had to act as if someone may be an exception and do everything via hex editing).



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Hex codes used so far (the 200 has not been added here for headered roms. If doing your own hex work and using a headered rom, add "200" to all the code areas. Further coding notes and details down below);

(Data - commands that can be replaced with other commands thanks to Relics)

C2/5452: 05   (Steal)
C2/5453: 0F   (Slot)
C2/5454: 0D   (Sketch)
C2/5455: 02   (Magic)
C2/5456: 00   (Fight)


(Data - commands that can replace above commands due to Relics)

C2/5457: 06   (Capture)
C2/5458: 18   (GP Rain)
C2/5459: 0E   (Control)
C2/545A: 17   (X-Magic)
C2/545B: 16   (Jump)


(Hex values for making commands show up in status screen)

C3/6198 data: commands to change (from)

C3/6198: 05   (Steal)
C3/6199: 0F   (Slot)
C3/619A: 0D   (Sketch)
C3/619B: 02   (Magic)
C3/619C: 00   (Fight)

C3/619D data: commands to change (to)

C3/619D: 06   (Capture)
C3/619E: 18   (GP Rain)    
C3/619F: 0E   (Control)
C3/61A0: 17   (X-Magic)
C3/61A1: 16   (Jump)


(Hex Values For Skill Commands)

Fight - 00
Item - 01
Magic - 02
Morph - 03
Revert - 04
Steal - 05
Capture - 06
SwdTech - 07
Throw - 08
Tools - 09
Blitz - 0A
Runic - 0B
Lore - OC
Sketch - 0D
Control - OE
Slot - OF
Rage - 10
Leap - 11
Mimic -12
Dance -13
Row - 14
Def - 15
Jump - 16
X-Magic - 17
GP Rain - 18
Summon - 19
Health - 1A
Shock -1B
Possess -1C
MagiTek -1D



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Version Details;

Version 0.1 changed the item properties.

Version 0.2 is where I found the code area for making the commands show up in the status screen and adding those changes to things.

Version 0.3 includes the original ips files that just hex editted the command functions battle/menu screens. Kinda worthless, but I figured someone might want them nonetheless.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Extra notes and details;

These patches are for headered roms, so add "200" to everything if you're trying to do hex work yourself with headered roms. So the hex code "C2/5452: 05" ("25452" if looking for it via "Go to offset" search functions in most hex editors) would become "C2/5652: 05" when looking around in the rom for it to then modify.

So if I wanted to change the "Fake Moustache" relic to give Relm "Mimic", I'd alter these lines (before then adding "200" with headered roms);

C2/5454: 0D   (Sketch) [Fake Moustache Relic] (I'd leave this alone in this example)
C2/5459: 0E   (Control) (I'd change the "0E" to "12" here)
C3/619F: 0E   (Control) (I'd then also change the "0E" to "12" here as well)

Once I did all of that, any time Relm would equip the "Fake Moustache" relic, she'd then have the Mimic command to use.


Also, for those looking for Ghost XIII's original "General Leo's Legacy" patch, it can be found here;
https://www.ff6hacking.com/forums/thread-2015.html



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Special thanks to Ghost XIII, darknil, abyssonym, and NPCnextdoor

